package com.velpro.im.controller;

import javax.annotation.Resource;

import com.velpro.im.controller.base.BaseController;
import com.velpro.im.controller.msg.ObjectResponse;
import com.velpro.im.mapper.po.User;
import com.velpro.im.service.UserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.*;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;


@RestController
@RequestMapping(value = "/user")
@Api(value = "user", tags = "用户认证接口")
public class LoginController extends BaseController {

    private static Logger log = LoggerFactory.getLogger(LoginController.class);
    
    @Resource
    private UserService userService;

    @RequestMapping(value = "/login",method=RequestMethod.POST)
    @ResponseBody
    public ObjectResponse<String> login(@RequestParam(name="loginName",value="登录账号",required=true) String loginName,
                                        @RequestParam(name="loginPwd",value="密码",required=true) String password) {
    	
    	/*User user = userService.selectByPrimaryKey(1);
    	String token = JwtTokenUtils.createToken("loginName", false);*/
        //com.velpro.im.
    	return new ObjectResponse<String>().data(null);
    }

    
    
}

